<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <!-- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">-->
    <title></title>
    <script type="text/javascript" src="/javascripts/jquery-1.11.2.min.js"></script>

    <!--<link rel="stylesheet" href="./stylesheets/font-awesome-4.3.0/css/font-awesome.min.css">-->
    <link rel="stylesheet" href="/javascripts/build/car.css">
    <!--<link rel="stylesheet" href="/stylesheets/font/css/style.css">
    <link rel="stylesheet" href="/stylesheets/ease/ease.css">


    <link rel="stylesheet" href="/stylesheets/mystart.css">


    <link rel="stylesheet" type="text/css" href='/stylesheets/login.css'/>-->

    <!--<script src="/javascripts/src/libs.js"></script>-->
    <!--<script src="/javascripts/build/car.min.js"></script>-->
    <!--<script src="/javascripts/controllers.js"></script>-->
    <!--<script src="/javascripts/orderControllers.js"></script>-->
    <!--<script src="/javascripts/centerControllers.js"></script>-->
    <!--<script src="/javascripts/services.js"></script>-->
    <!--<script src="/javascripts/centerServices.js"></script>-->
    <!--<script src="/javascripts/orderServices.js"></script>-->
    <!--<script src="/javascripts/directive.js"></script>-->

    <link rel="stylesheet" type="text/css" href="/stylesheets/date/DateTimePicker.css" />
    <script type="text/javascript" async="async" src="/stylesheets/date/DateTimePicker.js"></script>
    <script type="text/javascript" src="/javascripts/slider/jquery.slides.min.js"></script>
    <!--<script type="text/javascript"  src="./bower_components/ng-file-upload/angular-file-upload-shim.min.js"></script>
    <script type="text/javascript"  src="./bower_components/ng-file-upload/angular-file-upload.min.js"></script>-->
    <link  href="/javascripts/cropper/css/cropper.css" rel="stylesheet">
    <link  href="/javascripts/cropper/css/docs.css" rel="stylesheet">
    <script src="/javascripts/cropper/js/cropper.js"></script>
</head>
<body>
<div id="orders-header" class="header1-wrapper bc">
    <div class="header1 rela bc1 white">
        <div class="title txtc white">意见反馈</div>
        <!--<a class="btn-home white" href="#/" >-->
            <!--<i class="icon-home2"></i>-->
        <!--</a>-->
    </div>
</div>
<div id="wrapper"  style="">
    <div id="scroller">
        <div class="center-top white">
            <div class="con1">
                <div class="con-auth" >
                </div>
                <div class="box white">
                    <div style="margin-right: 8px;">
                        <img src="<%=headimgurl%>"  width="80" height="80" style="border-radius: 50%;" />
                    </div>
                    <div class="flex rela" style="height:80px;">
                        <div style="padding-top: 1em;"><span class="white big"><%=nickname%></span></div>
                    </div>
                </div>
            </div>
        </div>

        <div class="" style="margin-top: 45px; padding:0 24px;">
            <textarea id="suggest-content" placeholder="欢迎提出您的宝贵意见..." class="full-width bc3" rows="8" style="border:1px solid #999;"></textarea>

        </div>
        <span class="showNotnull" style="margin-left: 10%;font-size: 8px;color: #F74042;display: none">请填写内容</span>
        <div style="margin: 30px 2.5em 20px 2.5em;">
            <div class="btnbr" onclick="feedback()">提&nbsp;&nbsp;交</div>
        </div>
    </div>
</div>
<div class="jump" style="margin-top: 30%;text-align: center;display: none">
    <div class="content3">
        <span class="icon-icon-23 a1" style="font-size: 3em;color:#F74042;"></span><br><br>
        <span style="font-weight: 700">已提交反馈</span><br><br><span class="timeText" style="color:#F74042;font-size: 1.2em;"></span><br>
        <!--<span style="font-size: 0.8em" class="color2">查看刚竞价详细信息，<br>请点击<a ng-click="goBid()">我的竞价</a></span>-->
    </div>
</div>
</body>
<script>
    function feedback(){
        var text=$('#suggest-content').val();
        var openid='<%=openid%>';
        if(text==''){
            $('.showNotnull').css('display','block');
        }else{
            $.post('/subText',{openid:openid,text:text},function(result){
                if(result=='Ok'){
                    $('.jump').css('display','block');
                    $('#wrapper').css('display','none');
                    var num=3;
                    $('.timeText').text(num);
                    if(timer)clearInterval(timer);
                    var timer = setInterval(function(){
                        num-=1;
                        $('.timeText').text(num);
                        if(num==0){
                            WeixinJSBridge.call('closeWindow');//微信内置浏览器关闭当前页面
                        }
                    },1000);
                }
            });
        }
    }
</script>